<include file="public@head" />
</head>

<body>

    <div class="layui-fluid wrap js-check-wrap" id="component-tabs">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">模板管理</div>
                    <div class="layui-card-body">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li><a href="{:url('theme/index')}">所有模板</a></li>
                                <li class="layui-this">
                                    <a>安装模板</a>
                                </li>
                                <li>
                                    <a href="http://www.thinkcmf.com/faq.html?url=https://www.kancloud.cn/thinkcmf/faq/493511" target="_blank">安装说明 <i class="fa fa-question-circle"></i></a>
                                </li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <form method="post" class="js-ajax-form layui-form">
                                        <php> $status=array("1"=>lang('DISPLAY'),"0"=>lang('HIDDEN'));</php>
                                        <table class="layui-table">
                                            <thead>
                                                <tr>
                                                    <th>模板</th>
                                                    <th>模板名称</th>
                                                    <th>版本号</th>
                                                    <th>作者</th>
                                                    <th>模板描述</th>
                                                    <th>{:lang('ACTIONS')}</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <foreach name="themes" item="vo">
                                                    <tr>
                                                        <td>{$vo.theme}</td>
                                                        <td>{$vo.name}</td>
                                                        <td>{$vo.version}</td>
                                                        <td>{$vo.author}</td>
                                                        <td>{$vo.description}</td>
                                                        <td>
                                                            <a href="{:url('theme/installTheme',array('theme'=>$vo['theme']))}" class="layui-btn layui-btn-xs js-ajax-dialog-btn">安装</a>
                                                        </td>
                                                    </tr>
                                                </foreach>
                                            </tbody>
                                            <thead>
                                                <tr>
                                                    <th>模板</th>
                                                    <th>模板名称</th>
                                                    <th>版本号</th>
                                                    <th>作者</th>
                                                    <th>模板描述</th>
                                                    <th>{:lang('ACTIONS')}</th>
                                                </tr>
                                            </thead>
                                        </table>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
</body>

</html>